
<<<template "index/public/header.tpl" .>>>
<div class="layui-container container">
    <div class="layui-row layui-col-space20">
        <div class="layui-col-md8">
            <div class="carousel">
                <div class="layui-carousel" id="images-carousel">
                    <div carousel-item>
                        <<<range $index, $elem := .carousel_list>>>
                        <div>
                            <a target="_blank" href="<<<$elem.Url>>>"><img lay-src="<<<$elem.ImageUrl>>>" width="100%" height="280px;" /></a>
                        </div>
                        <<<end>>>

                    </div>
                </div>
            </div>
            <div class="article-main">
                <h2>
                    文章推荐
                </h2>
                <<<range $index, $elem := .article_list>>>
                <div class="article-list">
                    <figure><img lay-src="<<<$elem.ImageUrl>>>"></figure>
                    <ul>
                        <h3>
                            <a target="_blank" href="/article_detail?article_id=<<<$elem.Id>>>"><<<$elem.Title>>></a>
                        </h3>
                        <p><<<$elem.Introduction>>></p>
                        <p class="autor">
                            <span class="lm f_l"><a href="#"><<<$elem.CatName>>></a></span>
                            <span class="dtime f_l"><<<$elem.AddTime>>></span>
                            <span class=" f_r"><i class="layui-icon">&#xe612;</i><<<$elem.Author>>></span>
                            <span class=" f_r"><i class="layui-icon">&#xe60b;</i><<<$elem.TagsName>>></span></p>
                    </ul>
                </div>
                <<<end>>>
            </div>
            <!--分页-->
            <div id="page"></div>
        </div>
        <<<template "index/public/right.tpl" .>>>
    </div>
</div>
<<<template "index/public/footer.tpl" .>>>
</body>
</html>
